<template>
  <mt-header fixed :title="title">
    <slot name="left"></slot>
    <!--<mt-button icon="back" slot="left" @click="back">返回</mt-button>-->
    <slot slot="right" name="right"></slot>
  </mt-header>
</template>

<script>
  export default {
    props: {
      back: {
        type: Function
      },
      title: {
        type: String
      }
    },
    name: 'Header',
    methods: {
      goBack() {
        window.history.go(-1);
      }
    }

  }
</script>
